package com.project.client.service;

import com.project.client.domain.AreaInfoEntity;
import com.project.client.dto.AreaInfoTreenode;

import java.util.List;

/**
 * 城市Service接口
 *
 * @author scorpio
 * @date 2020-10-10
 */
public interface AreaInfoService {

    AreaInfoEntity selectById(Long id);

    AreaInfoEntity selectByCode(String areaCode);

    AreaInfoEntity selectByName(String name);

    List<AreaInfoEntity> selectByCodes(String areaCodes);

    //树形
    List<AreaInfoTreenode> tree(Long endLevel);

    List<AreaInfoTreenode> tree(Long startParentId,Long startLevel,Long endLenel);

    List<AreaInfoEntity> selectByLevel(Long startLevel,Long endLenel);

    //清理缓存
    void clearCache();
}
